package com.telecom.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor

public class Dept {
    private Integer deptId;
    private String deptName;
    private String deptAddr;

    public Dept(Integer deptId, String deptName, String deptAddr) {
        this.deptId = deptId;
        this.deptName = deptName;
        this.deptAddr = deptAddr;
    }

    private List<Emp> emps;  //用来封装所属部门的员工集合
}
